const waitTime = (time = 100) => {
  return new Promise(resolve => {
    setTimeout(() => {
      resolve(true);
    }, time);
  });
};

export default {


  'POST /api/user/getUserInfo': async (req, res) => {
    await waitTime(300);
    res.send({
      code: 200,
      msg: 'ok',
      data: {
        userId: '2222222',
        name: '小明',
        avatar: 'https://gw.alipayobjects.com/zos/antfincdn/XAosXuNZyF/BiazfanxmamNRoxxVxka.png',
      },
    });
  },
};
